﻿<div id="dlg_BeneficioServicioGratis" title="Beneficio Servicio Gratis">
    <div class="col-sm-12">
        <div class="col-sm-12 no-padding">
            <div class="col-sm-12 no-padding">
                <label>Servicio</label>
                <input id="ddl_ServGratis_Servicio" data-role="dropdownlist" data-auto-bind="false" data-value-primitive="true"
                    data-bind="source: serviciosDS" data-value-field="Value" data-text-field="Text" style="width: 100%" />
            </div>
        </div>

        <div class="col-sm-12 no-padding">
            <div class="col-sm-12 no-padding">
                <label>SubTipo</label>
            </div>
            <div class="col-sm-12 no-padding">
                <input id="ddl_ServGratis_SubTipo" data-role="dropdownlist" data-auto-bind="false" data-value-primitive="true"
                    data-bind="source: subtiposDS" data-value-field="Value" data-text-field="Text" style="width: 100%" />
            </div>
        </div>

        <div class="space-10"></div>

        <div class="col-sm-12 well">
            <div class="row col-sm-12">
                <label>Otorgar beneficio cuando: </label>
            </div>

            <div class="row col-sm-12">
                <div class="col-sm-9">
                    <label>Cantidad de servicios se igual a: </label>
                </div>

                <div class="col-sm-3 no-padding">
                    <input id="txt_ServGratis_CantServicios" class="form-control focused" type="text">
                </div>
            </div>
        </div>

        <div class="col-sm-12 align-center">
            <div class="space-4"></div>
            <button id="btn_ServGratis_Aceptar" class="btn btn-sm btn-primary">Aceptar</button>
            <button id="btn_ServGratis_Cancelar" class="btn btn-sm btn-default">Cancelar</button>
        </div>
    </div>
</div>

<script>
    var BeneficioServicioGratisVM;

    $(document).ready(function () {
        BeneficioServicioGratisVM = new kendo.observable({
            @*serviciosDS: AjaxParamsActionPost('@Url.Action("GetEntities", "EstadoGeneral")', { 'rowStatus': true }),
            subtiposDS: AjaxParamsActionPost('@Url.Action("GetEntities", "EstadoGeneral")', { 'rowStatus': true }),*@
        });

        kendo.bind('#dlg_BeneficioServicioGratis', BeneficioServicioGratisVM);
    });
</script>